
<div class="pageContent">
	<form method="post" action="__URL__/insert/navTabId/<?php echo $pid>0?'Menu_menu_level_one':'Menu_menu_level_zero'; ?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<input type="hidden" name="pid" value="{$pid}"/>
        <input type="hidden" name="level" value="<?php echo $pid>0?1:0; ?>"/>
        <div class="pageFormContent" layoutH="56">
			
			<p>
				<label>目录名称：</label>
				<input name="name" class="required" type="text" size="30" alt="请输入目录名称"/>
			</p>
			
			<p>
				<label>负责人：</label>
				<input name="manager" type="text" size="30" />
			</p>
			<p>
                <label>是否自定义页面：</label>
                <select class="combox" id="custom_flag" name="custom_flag" onchange="update_custom_url()">
            		<option value="0" selected="checked">否</option>
            		<option value="1">是</option>
            	</select>
                <script>
                function update_custom_url(){
                    if($("#custom_flag").val() == 0){
                        document.getElementById("custom_url").disabled = true;
                        document.getElementById("custom_url").value = '';
                    }else{
                        document.getElementById("custom_url").disabled = false;
                    }
                }
                </script>
            </p>
            <p>
                <label>自定义页面文件：</label>
                <input disabled="true" id="custom_url" name="custom_url" type="text" size="30" />
            </p>
			<p>
				<label>备注：</label>
				<input name="remark" type="text" size="30" />
			</p>
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
